package com.ncloud.crm.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;
import com.ncloud.crm.entity.order.Order;

public interface OrderService extends BaseService{
	public Order getOrderPk(Long orderId);

	public Object getAllOrderList(JSONObject json);
	public JSONObject insertOrder(JSONObject json);
	
	public JSONObject finishOrder(Long orderId);

	int updateOrderState(Order order);

	/*查询不需要施工的订单*/
	Long getOrderNoWorkInfo(Long orderId);

	public void moveOrder2His(Long orderId);

	public int deleteByOrderId(Long orderId);

	public List<Map<String, Object>> getNeedConstructOrders();

	Object getOrderList(JSONObject json);

	public Order getHisOrderPK(Long orderId);
}
